/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package pl.mwas.proteana.geneontology.util;

/**
 *
 * @author mateusz.was
 */
public class RelationshipFactory {

    public static Relationship getRelationship(String line) {
        switch (line) {
            case "has_part":
                return Relationship.HAS_PART;
            case "part_of":
                return Relationship.PART_OF;
            case "regulates":
                return Relationship.REGULATES;
            case "positively_regulates":
                return Relationship.POSITIVELY_RELUGATES;
            case "negatively_regulates":
                return Relationship.NEGATIVELY_REGULATES;
            case "results_in":
                return Relationship.RESULTS_IN;
            case "occurs_in":
                return Relationship.OCCURS_IN;
            case "is_a":
                return Relationship.IS_A;
        }
        return null;
    }
    
}
